/*
 * Created on 22.10.2003
 * Local Projects Database
 * (c) 2003 by eRomania Gateway Association
 */
package ro.gateway.aida.utils;

import java.io.ByteArrayOutputStream;
import java.io.PrintStream;

import javax.servlet.http.HttpServletRequest;



/**
 * @author Mihai Postelnicu
 * e-mail: mihai@ro-gateway.org
 */
public class BugTracker
{
      public static void publishBug( Exception e, HttpServletRequest request )
      {
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            PrintStream ps = new PrintStream( bos );
            e.printStackTrace( ps );
            request.setAttribute( "error", bos.toString() );
      }
      //TODO: insert it into database
}
